package com.dms.service;

import com.dms.pojo.Building;

import java.util.List;

/**
 * @className: BuildingManageService
 * @package: com.dms.service
 * @description 楼宇管理模块业务逻辑接口
 * @author: sk
 */
public interface BuildingManageService {
    //获取楼宇列表数据
    List<Building> getBuildingLimitList(String query, int select, int pageNum, int pageSize);

    //获取楼栋列表所有信息
    List<Building> getBuildingIdList();

    //获取楼栋列表total
    int getBuildingTotal(String query, int select);

    //判断楼栋号是否存在
    boolean checkBuildingNumber(String buildingNumber);

    //添加新的楼栋
    int addBuilding(Building building);

    //根据 楼栋号查询楼栋信息
    Building getBuildingByNumber(String buildingNumber);

    //根据 楼栋号 修改楼栋信息
    int editBuildingByNumber(Building building);

    //删除楼栋
    int deleteBuilding(int buildingId);
}
